package com.icebartech.base.modules.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;


/**
 * 注册账号需要的入参对象
 * @author Administrator
 *
 */
@ApiModel(description = "注册账号需要的入参对象")
public class RegisterParam implements Serializable {

	private static final long serialVersionUID = 5818936257236893597L;
	
	@ApiModelProperty(value = "用户id")
	private Long userId;
	@NotBlank(message = "用户名不能为空")
	@ApiModelProperty(value = "用户名")
	private String userName;
	@NotBlank(message = "真实姓名")
	@ApiModelProperty(value = "真实姓名")
	private String trueName;
	@NotBlank(message = "手机号不能为空")
	@ApiModelProperty(value = "手机号")
	private String mobile;
	@NotBlank(message = "初始密码不能为空")
	@Pattern(regexp = "^[a-zA-Z0-9]{6,12}$", message = "密码必须为6-12位的字母或数字")
	@ApiModelProperty(value = "初始密码")
	private String password;
	@ApiModelProperty(value = "重复初始密码")
	private String confirmPassword;
	
	@NotNull(message = "角色id不能为空")
	@ApiModelProperty(value = "角色id")
	private Long roleId;
	
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getConfirmPassword() {
		return confirmPassword;
	}
	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}
}
